/*
 * @Author: liyin 2179253556@qq.com
 * @Date: 2022-11-09 14:37:11
 * @LastEditors: liyin 2179253556@qq.com
 * @LastEditTime: 2025-09-29 14:35:20
 */
// 引入请求方式
import { get, post, put, delete2 } from '../../util/http'
// 获取菜单列表
export const ApiList = (obj: any) => get('/admin/menuList', obj)
// 添加菜单
export const addMenus = (obj: any) => post('/admin/menu', obj)
// 菜单排序/菜单修改
export const editMenus = (obj: any) => put('/admin/menu', obj)
// 删除菜单
export const delMenus = (obj: any) => delete2('/admin/menu', obj)
// 获取登陆者后台菜单栏
export const getLoginLeftMenuList = () => get('/admin/getLoginLeftMenuList')
// 分配权限
export const setPermission = (obj: any) => put('/admin/setPermission', obj)
// 获取角色权限列表
export const getRolePermissionList = (obj: any) => get('/admin/getRolePermissionList', obj)
// 菜单上移下移
export const sortMenu = (obj: any) => put('/admin/sortMenu', obj)
// 角色列表
export const RoleList = () => get('/admin/roleList')
// 账号列表
export const getManagersList = (obj: any) => get('/admin/userList', obj)
// 添加账号
export const addManagers = (obj: any) => post('/admin/user', obj)
// 修改账号
export const editManagers = (obj: any) => put('/admin/user', obj)
// 删除账号
export const delManagers = (obj: any) => delete2('/admin/user', obj)
// 导入账号资料
export const importAccountExcel = (obj: any) => post('/admin/importAccExcel', obj)
// 确认导入学生资料
export const confirmImportAccount = () => post('/admin/confirmImportAcc')
// 获取用户设置文章权限
export const getUserModuleAuth = (obj: any) => get('/admin/userModuleAuth', obj)
// 设置用户文章权限
export const setModuleAuth = (obj: any) => put('admin/moduleAuth', obj)

